import request from '@/utils/request_qianfan';

export function conversation(data:any) {
    return request({
        url: '/conversation',
        method: 'post',
        data,
        headers: {
            'Content-Type': 'application/json',
            'Access-Control-Allow-Origin': '*',
            'Access-Control-Allow-Headers':'*',
			'Authorization' : 'Bearer bce-v3/ALTAK-IN1DDUVBSQACbFJ09DnDP/1fd059dce6ce1403c111881923f825ea0a023c19'
        },
    })
}
export function runs(data:any) {
    return request({
        url: '/v2/app/conversation/runs',
        method: 'stream',
        data,
        headers: {
            'Content-Type': 'application/json',
            'Access-Control-Allow-Origin': '*',
            'Access-Control-Allow-Headers':'*',
			'Authorization' : 'Bearer bce-v3/ALTAK-IN1DDUVBSQACbFJ09DnDP/1fd059dce6ce1403c111881923f825ea0a023c19'
        },
    })
}
// 默认全部导出
export default {
    runs,
    conversation,
}